home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _GUICtrlComboAutoComplete.au3 < prev    next >
Text File  |  2007-09-08  |  594b  |  23 lines

  1. #include <GuiConstants.au3>
  2. #include <GuiCombo.au3>
  3.  
  4. Opt ('MustDeclareVars', 1)
  5.  
  6. Dim $Combo, $Btn_Exit, $msg, $old_string = ""
  7.  
  8. GUICreate("ComboBox AutoComplete", 392, 254)
  9.  
  10. $Combo = GUICtrlCreateCombo("", 70, 100, 270, 120)
  11. GUICtrlSetData($Combo, "AutoIt|v3|is|freeware|BASIC-like|scripting|language|Autobot|Animal")
  12. $Btn_Exit = GUICtrlCreateButton("Exit", 150, 180, 90, 30)
  13. GUISetState()
  14. While 1
  15.     $msg = GUIGetMsg()
  16.     Select
  17.         Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
  18.             ExitLoop
  19.         Case Else
  20.             _GUICtrlComboAutoComplete ($Combo, $old_string)
  21.     EndSelect
  22. WEnd
  23. Exit